<template>
  <div class="document">
    <div class="playback-panel" id="playbackPanel"></div>
  </div>
</template>

<script>
import Utils from '@views/live/cc/common/utils'
export default {
  data() {
    return {
      HDScene: window.replayHDScene
    }
  },
  mounted() {
    this.init()
  },
  methods: {
    init() {
      this.HDScene.onDocumentDisplayMode(data => {
        Utils.log('onDocumentDisplayMode', data)
        if (data.documentDisplayMode) {
          //开启极速文档自适应模式
          this.HDScene.documentAdaptive(true)
        } else {
          //开启极速文档自适应模式
          this.HDScene.documentAdaptive(false)
        }
      })
    }
  }
}
</script>

<style lang="scss">
@import './document.scss';
</style>
